home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NT Sources
/
Infomagic - NT Source Volume 1 (Disc 1 of 2).iso
/
network
/
pcdctrla.exe
/
PCDCTRL.EXE
/
PCDAUTO.TPU
< prev
next >
Wrap
Text File
|
1997-04-03
|
1KB
|
35 lines
!+++
! PCDUO_AUTOEXEC.TPU - Edit AUTOEXEC.BAT for PC-Duo
!---
LUT_start_edit (); ! This reads the file (if it exists), creates a buffer,
! and positions us at the top of the buffer
IF LUT_buffer_empty
THEN
quit; ! Error - the input file must exist!
ENDIF;
! Perform edits to the target PC AUTOEXEC.BAT file.
!
! This edit is not necessary if PATHWORKS 5 template(s) were found on the PC,
! as PC-Duo startup is more readily controlled using the [User Commands]
! section of the template.
!
! Search for a NET START line. If one is found, change it to NET START
! NETBEUI. This will load a real-mode network, suitable for the PC-Duo DOS
! SLAVE TSR to load. This is not necessary if the PC is running PATHWORKS,
! as that always loads a real-mode network during NET START (or STARTNET.BAT).
! LUT_line_replace_add ("net start", "net start netbeui");
! Search for a reference to the PC-Duo startup batch file STARTTSR.BAT.
! If one is found, replace it with the new text. If none are found, add
! a new line at the end of the file.
LUT_line_replace_add ("starttsr", "if exist \pcduo\starttsr.bat call \pcduo\starttsr.bat");
! And now perform 'standard' finishing functions...
LUT_finish_edit ();